package HiveUDF;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;

public class HelloUdf extends UDF {
    public Text evaluate(final Text t) {
        if (t.getLength() == 0) return null;
        return new Text("Hello:" + t);
    }

    public static void main(String[] args) {
        System.out.println(new HelloUdf().evaluate(new Text("")));
    }
}

